package com.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/mall/c/api")
public class MallCContoller {
    @GetMapping("/")
    @ResponseBody
    public String index(HttpServletRequest request) {
        return "this is mall c " + request.getLocalAddr() + ":" + request.getLocalPort();
    }

    @RequestMapping("/list")
    public String list() {
        return "list";
    }
}
